import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DictIntIntHelper } from "./DictIntIntHelper";
type int = number;
//class SBargainShopPlayerItemInfo
    
    export  class SBargainShopPlayerItemInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SBargainShopPlayerItemInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.type);
            DictIntIntHelper.write(arg1, this.itemInfo);
            arg1.writeInt(this.todayRefreshTimes);
            arg1.writeInt(this.rechargeAmount);
            arg1.writeInt(this.costGoldAmount);
            arg1.writeInt(this.level);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.type = arg1.readInt();
            this.itemInfo = DictIntIntHelper.read(arg1);
            this.todayRefreshTimes = arg1.readInt();
            this.rechargeAmount = arg1.readInt();
            this.costGoldAmount = arg1.readInt();
            this.level = arg1.readInt();
            return;
        }

        public /* const */_type: int=2052;

        public /* var */type: int;

        public /* var */itemInfo: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */todayRefreshTimes: int;

        public /* var */rechargeAmount: int;

        public /* var */costGoldAmount: int;

        public /* var */level: int;

        public static /* var */_regist: SBargainShopPlayerItemInfo;
    }

            SBargainShopPlayerItemInfo._regist = new SBargainShopPlayerItemInfo(true);
        